﻿<%@ Page Language="C#" MasterPageFile="~/User.Master" AutoEventWireup="true" CodeBehind="TeacherManage.aspx.cs" Inherits="ScoreManage.TeacherManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <table style="width:100%">
    <tr>
      <td style="font-family:黑体; font-size:26px; height:30px; text-align:center;">
        教师管理
      </td>
    </tr>
    <tr>
      <td>
        <asp:Button ID="btnInsert" runat="server" Text="添加" onclick="btnInsert_Click" />
          <br />
          <asp:TextBox ID="txtQuery" runat="server"></asp:TextBox>
        <asp:Button ID="btnTno" runat="server" Text="按职工号查询" onclick="btnTno_Click" />
          <asp:Button ID="btnTname" runat="server" Text="按姓名查询" onclick="btnTname_Click" />
          <asp:Button ID="btnDepartment" runat="server" Text="按所在院系查询" onclick="btnDepartment_Click" /><br/><br/>
      </td>
    </tr>
    <tr>
      <td>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="800px" CellPadding="4" ForeColor="#333333" GridLines="None">
            <AlternatingRowStyle BackColor="White" />
          <Columns>
            <asp:BoundField DataField="tno" HeaderText="职工号" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="tname" HeaderText="姓名" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="sex" HeaderText="性别" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="email" HeaderText="Email" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="department" HeaderText="院系" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:TemplateField ShowHeader="False">
              <ItemTemplate>
                <asp:LinkButton ID="lbtnEdit" runat="server" 
                  CommandArgument='<%# Eval("tno") %>' onclick="lbtnEdit_Click">编辑</asp:LinkButton>
                <asp:LinkButton ID="lbtnDelete" runat="server" 
                  CommandArgument='<%# Eval("tno") %>' onclick="lbtnDelete_Click" >删除</asp:LinkButton>
              </ItemTemplate>
            </asp:TemplateField>
          </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>

        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" Width="800px" CellPadding="4" ForeColor="#333333" GridLines="None">
            <AlternatingRowStyle BackColor="White" />
          <Columns>
            <asp:BoundField DataField="tno" HeaderText="职工号" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="tname" HeaderText="姓名" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="sex" HeaderText="性别" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="email" HeaderText="Email" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="department" HeaderText="院系" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
          </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
      </td>
    </tr>
  </table>
</asp:Content>

